﻿/*
 * ReadonlyCoordinate
 * 
 * initial implementation : 31.8.2007
 *
 * Copyright (c) Adam Sida, asida@centrum.cz.
 * All rights reserved.
 * 
 * for license see Petra.Gis.License.txt
 */
using System;
//using System.Collections.Generic;
//using System.Text;
//using Petra.Gis.Geometry;


namespace Petra.Gis.Geometry.Support
{
  /// <summary>
  /// readonly point is for computed 'point' values that can never change
  /// Eg. arc center point is computed and cannot be changed
  /// </summary>
  public class ReadonlyCoordinate : Coordinate
  {

    internal double dX, dY, dZ;
    private Arc parent;


    /// <summary>
    /// currently only Arc needs readonly point, so only this constructor is available
    /// </summary>
    internal ReadonlyCoordinate(Arc oParent)
    {
      parent = oParent;
    }



    //readonly point overrides r/w X,Y,Z
    public override double X { get { return dX; } }
    public override double Y { get { return dY; } }
    public override double Z { get { return dZ; } }
  }
}
